﻿<!DOCTYPE html>
<html>
<head>
<title>丸子妈妈</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script src="res/jquery.js"></script>
<script src="fun.js"></script>
<link href="style.css" rel="stylesheet" />
<link href="animate.css" rel="stylesheet" />
</head>
<body>


<script>
$(function(){
	delay_1 = .4;
	self_delay_3 = .2;
	self_delay_4 =.2;
	
	var arr = [.6,.4,.3,.4,.6];
	var pin = ["wo jin nian","neng bu neng","shen qing","zhu zha","da ben ying"];
	var word = ["我今年","能不能","申请","驻扎","大本营？"];
	
	var str = "<u style='font-size:14px;'>老大，去年出差回来，孩子都不认识我了，</u>";
	
	for(var i=0;i<word.length;i++){
		str = str+"<s><i>"+pin[i]+"</i></s>"+"<em>"+ word[i] +"</em>";
	};
	str = "<dl>"+str+"</dl>";	
		
	$(".talk_write").append(str)
	var arrchange = new Array();
	for(var i=0;i<arr.length;i++){
		if(i==0){
			arrchange[0] = arr[0]
		}
		else{
			arrchange[i]=arr[i]+arrchange[i-1];
		}
		$(".talk_write i").eq(i).css({
			"animation-delay":delay_1+(arrchange[i]-arr[i]/2)+"s"
		});
		$(".talk_write s").eq(i).css({
			"animation-delay":delay_1+arrchange[i]+"s"
		});
		$(".talk_write em").eq(i).css({
			"animation-delay":delay_1+arrchange[i]+"s"
		});
	}
	over_1 = delay_1 + .3
	delay_2 = over_1 + arrchange[arrchange.length - 1] 
	delay_3 = delay_2 + self_delay_3;
	delay_4 = delay_3 + self_delay_4;
	
	j=0;
	
	aaa=280;
	bbb=150;
	
	ccc=1000/aaa;
	print = setInterval(function(){
		if(j>(over_1-.4)*ccc){
			num = Math.floor(Math.random()*8)+1;
			$(".kword dl").eq(num).addClass("click");
			setTimeout(function(){
				$(".kword dl").eq(num).removeClass("click");
			},bbb)
		}
		if(j>(delay_2-.6)*ccc){
			clearInterval(print)
		}
		j++
	},aaa)
	
	$(".talk_write dl,.hide_box").css({ "animation-delay":delay_3+"s" });
	
	page_total = delay_4+0.2;
	
	setTimeout(function(){ window.parent.nextAnimation('page20.html'); },page_total*1000);	
})
</script>

<style>
	.talk_write i{animation-name: show;}
	.talk_write s{animation-name: hide;}
	.talk_write em{animation-name: show;}
	.talk_write dl *{vertical-align: middle;}
</style>

<div class="out">
	<div class="phone_top"><dl class="time_point_14">20:30</dl></div>
	<div class="talk keyboard_show">
		<div class="talk_list">
			<div class="talk_time"><em>昨天 19:00</em></div>
			<dl class="talk_boss_0"></dl>
			<dl class="talk_boss_1"></dl>
			<div class="talk_time"><em class="time_point_4"></em></div>
			<dl class="talk_boss_2"></dl>
			<dl class="talk_boss_3"></dl>
			<dl class="talk_boss_4"></dl>
			<dl class="talk_boss_5"></dl>
			<dl class="talk_boss_6"></dl>
			<dl class="talk_boss_7"></dl>
			<div class="talk_time"><em class="time_point_14"></em></div>
			<dl class="talk_boss_8"></dl>
			<dl class="talk_boss_9"></dl>
		</div>
		<div class="talk_top"><dl>老板</dl></div>
		<div class="talk_bottom_box">
			<div class="talk_bottom">
				<div class="talk_bottom_input talk_write"></div>
			</div>
		</div>
	</div>
</div>

</body>
</html>